sdcolormanagementengine module

class sd.api.sdcolormanagementengine.SDColorManagementEngine(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Color management engine. There is only one SDColorManagementEngine, that you can retrieve from the SDApplication

canConvertLabColorToWorkingColorSpace() → bool

Indicates if the color management engine can convert Lab colors to the working color space

convertLabColorSpaceToWorkingColorSpace(inValue: sd.api.sdbasetypes.ColorRGB) → sd.api.sdbasetypes.ColorRGB

Convert a ColorRGB from the working color space to the display color space

Parameters

inValue – The input color

convertWorkingColorSpaceToDisplayColorSpace(inValue: sd.api.sdbasetypes.ColorRGB) → sd.api.sdbasetypes.ColorRGB

Convert a ColorRGB from the working color space to the display color space

Parameters

inValue – The input color

getClassName() → str

Returns the most specific name of the class this APIObject is

getColorSpaces() → Optional[sd.api.sdarray.SDArray[sd.api.sdvaluestring.SDValueString][sd.api.sdvaluestring.SDValueString]]

Get the list of color space names.

getName() → str

Get the color management engine name

getOCIOConfigFileName() → Optional[str]

Get the filename of the current OCIO configuration or None, if not using OpenColorIO

getRawColorSpaceName() → str

Get the raw color space name

getWorkingColorSpaceName() → str

Get the working color space name

release() → None

Releases an APIObject